﻿#ifndef LIGHTTOOLBAR_H
#define LIGHTTOOLBAR_H
#include "pwm30120.h"
#include <QToolBar>
#include <QAction>
#include <QSettings>
class LightToolBar : public QToolBar
{
    Q_OBJECT
public:
    LightToolBar(QWidget *parent = nullptr);
    ~LightToolBar();
    void loadSettings(QSettings &settings);
private slots:
    void onAction(bool checked);
signals:
private:
    QAction *m_pActionLight[2];
    QAction *m_pActionSettings;

    int value[4];
    PWM30120 lights;
};

#endif // LIGHTTOOLBAR_H
